import { AxiosResponse } from "axios"
import service from "/@/utils/request"
const baseUrl = "/service-project/PmThreeYearsOverhaulPlanProjService"
import { SYSTEM_CONFIG } from '/@/config/system'

/**
 * 下载excel附件信息
 * @param templateId 附件模板id
 * @returns 
 */
export function downloadExcelTemplate(templateId: string): Promise<AxiosResponse<Blob>> {
    let url = baseUrl + "/downloadExcelTemplate";
    return service.get(url, { params: { templateId }, responseType: 'blob', timeout: SYSTEM_CONFIG.downloadFileTimeout })
}